package com.vpen.client.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.messaging.simp.stomp.StompSession;
import org.springframework.util.concurrent.ListenableFutureCallback;

/**
 * 描述
 *
 * @author 韦鹏
 * @date 2022/11/28 15:01
 */
@Slf4j
public class MyListenableFutureCallback implements ListenableFutureCallback<StompSession> {
    @Override
    public void onFailure(Throwable ex) {
        log.error("连接失败");
    }

    @Override
    public void onSuccess(StompSession result) {
        log.debug("连接成功");
    }
}
